package entity;

import entity.map.characterMap;

public class character {
        @Override
        public String toString() {
            return "character{" +
                    "name='" + name + '\'' +
                    ", isFailed=" + isFailed +
                    ", isSleep=" + isSleep +
                    ", map=" + map +
                    ", Priority=" + Priority +
                    '}';
        }
    public character(int priority) {
        this.Priority = priority;
    }
    public int getPriority() {
        return Priority;
    }

    public void setPriority(int priority) {
        this.Priority = priority;
    }
    //角色的名字
    private String name;
    //判断角色是否淘汰 true为淘汰
    //默认为false
    private boolean isFailed=false;
    //判断玩家是否休眠 true为休眠，在此情况下不可以进行操作
    //默认为false
    private boolean isSleep=false;
    //玩家角色的地图
    private characterMap map;
    //玩家的优先级
    private int Priority;

    public character(String name) {
        this.name = name;
    }

    public boolean isFailed() {
        return isFailed;
    }

    public void setFailed(boolean failed) {
        isFailed = failed;
    }

    public boolean isSleep() {
        return isSleep;
    }

    public void setSleep(boolean sleep) {
        isSleep = sleep;
    }

    public characterMap getMap() {
        return map;
    }
}
